package cn.example.zjgsu.service;

import cn.example.zjgsu.exception.MyException;
import cn.example.zjgsu.pojo.Plan;
import cn.example.zjgsu.pojo.result.ResultBriefPlan;
import cn.example.zjgsu.pojo.result.ResultMFR;
import cn.example.zjgsu.pojo.result.ResultScenery;

import java.util.List;

/**
 * @author xuejiahui
 * @date 2020/3/26 -19:16
 */
public interface OneDayFoodPageServer {
    int insertPlan(Plan plan) throws MyException;

    Plan getPlanByPlanId(int planid) throws NullPointerException;

    List<ResultBriefPlan> getPlanByUserId(String userid)throws MyException;

    List<ResultMFR> getRecommendFoodRecord(int cityid) throws MyException;

    int deletePlanById(int planid);

    List<ResultScenery> getSceneryByShopId(int shopid);

    int updatePlan(Plan plan);

    ResultBriefPlan getBriefPlanById(int planid);

    List<ResultMFR> fuzzyQueryFoodRecord(String foodrecordtitle)throws MyException;

}
